package com.emex.app.shared.ws;

import com.emex.app.shared.data.Profit;
import com.emex.app.shared.data.ProfitExample;
import com.emex.app.shared.data.ProfitType;
import java.util.Date;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author Sergey Karavaev
 */
@WebService(targetNamespace = "http://emex.com/Profit")
public interface ProfitWebService {

    @WebMethod
    public int deleteProfitByPrimaryKey(Integer id);

    @WebMethod
    public Profit insertProfit(Profit record);

    @WebMethod
    public List<Profit> selectProfitByExample(ProfitExample profitExample);

    @WebMethod
    public Profit selectProfitByPrimaryKey(Integer id);

    @WebMethod
    public Profit updateProfitByPrimaryKey(Profit record);

    @WebMethod
    public List<Profit> getAllProfitsByDate(Date date);

    @WebMethod
    public List<Profit> getAllProfitsByDateAndProfitType(Date startDate, Date endDate, Integer profitTypeId);

    @WebMethod
    public int deleteProfitTypeByPrimaryKey(Integer id);

    @WebMethod
    public ProfitType insertProfitType(ProfitType record);

    @WebMethod
    public List<ProfitType> getAllProfitTypes();

    @WebMethod
    public ProfitType updateProfitType(ProfitType record);

    @WebMethod
    public ProfitType selectProfitTypeByPrimaryKey(Integer id);

    @WebMethod
    public List<Profit> getAllProfitsByDateEqualOrGraterThan(Date date);
}
